﻿<%@ Page Title="Listar Usuários" Language="C#" MasterPageFile="~/masterpages/mpPadrao.master"
    AutoEventWireup="true" CodeBehind="UsuarioListar.aspx.cs" Inherits="OwnZTec.Web.conteudoseguro.Administracao.UsuarioListar" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ConteudoContent" runat="server">
    <span class="fontBold font14">Lista de Usuários</span>
    <br />
    <br />
    <asp:GridView ID="gvPerfis" runat="server" Style="width: 90%; margin: auto;" AutoGenerateColumns="False"
        CellPadding="4" ForeColor="Black" GridLines="Vertical" BackColor="White" CssClass="gridBordaPadrao"
        DataKeyNames="Id" OnRowCommand="GvRowCommand" OnRowDataBound="GvRowDataBound"
        ShowHeaderWhenEmpty="True">
        <AlternatingRowStyle BackColor="White" />
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle CssClass="gridCabecalhoPadrao gridBordaPadrao" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" CssClass="gridBordaPadrao" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
        <EmptyDataTemplate>
            <asp:Label ID="lblInfo" runat="server">Desculpe, nenhum registro encontrado.</asp:Label>
        </EmptyDataTemplate>
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:ImageButton ID="cmdAdicionar" runat="server" ImageUrl="~/imagens/botoes/add15.png"
                        CausesValidation="false" OnClientClick="window.location = 'UsuarioCriar.aspx';  return false;"
                        ToolTip="Novo" />
                </HeaderTemplate>
                <HeaderStyle Width="55px"/>
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:ImageButton ID="cmdEdit" CommandName="Editar" runat="server" ImageUrl="~/imagens/botoes/edit15.png"
                        CommandArgument='<%# Eval("Id") %>' CausesValidation="false" ToolTip="Editar" />
                    <asp:ImageButton ID="cmdResetPw" CommandName="ResetPw" runat="server" ImageUrl="~/imagens/botoes/reset15.png"
                        CommandArgument='<%# Eval("Id") %>' CausesValidation="false" ToolTip="Resetar Senha"
                        OnClientClick="return confirmarResetSenha();" />
                    <asp:ImageButton ID="cmdDelete" CommandName="Deletar" runat="server" OnClientClick="return confirmarExclusao();"
                        ImageUrl="~/imagens/botoes/excluir15.png" CommandArgument='<%# Eval("Id") %>'
                        CausesValidation="false" ToolTip="Excluir" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Nome" HeaderText="Nome">
                <HeaderStyle Width="150px" HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="Login" HeaderText="Login">
                <HeaderStyle  Width="125px" HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="Email" HeaderText="E-Mail">
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
        </Columns>
    </asp:GridView>
    <br />
    <asp:Label ID="lblInfo" runat="server" Text=""></asp:Label>
</asp:Content>
